package org.slusk.thynwor.corestructures;

import java.awt.Color;
import java.awt.Component;

import javax.swing.JLabel;

import org.slusk.thynwor.util.Coordinates;
import org.slusk.thynwor.util.Direction;

public class Obstacle extends Entity {

	public Obstacle(Environment environment, Coordinates coordinates) {
		super(environment, coordinates);
	}

	@Override
	public void doTurnActions() {}

	@Override
	public Entity clone() {
		return null;
	}

	@Override
	public char getDisplayCharacter() {return 'X';}

	@Override
	public EntityType getEntityType() {return EntityType.OBSTACLE;}

	@Override
	public void render(Component cell) {
		((JLabel)cell).setText(this.getDisplayCharacter()+"");
		cell.setBackground(new Color(75, 75, 75));
		((JLabel)cell).setIcon(null);
	}

	@Override
	public void move() {}

	@Override
	public void move(Direction direction) {}

}
